<%@page import="dao.CourseDao"%>
<%@page import="entities.Course"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Iterator"%>
<select name="courseSelect">
    <%
        CourseDao courseDao = new CourseDao();
        for (Iterator it = courseDao.getListCourse().iterator(); it.hasNext();) {
            Course course = (Course) it.next();
            out.write("<option value='" + course.getCourseid() + "'>"
                    + course.getCourseName()
                    + "</option>");
        }
    %>
</select>